package com.htjc.integral.account.mapper.uep;


import java.math.BigDecimal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.htjc.uep.center.model.entity.UpPool;
import com.htjc.uep.center.model.service.request.DeductionPointsRequest;


@Mapper
public interface CenterApplyMapper {
	
	public Boolean queryPoolIsEmpty(@Param("platformNo")String platformNo, @Param("accountNo")String accountNo);
	
	public UpPool queryUpPool(@Param("platformNo")String platformNo, @Param("accountNo")String accountNo);
	
	public void updatePoolNum(@Param("poolNo")String poolNo, @Param("operatorNum")int operatorNum);
	
	public void updatePoolStatus(@Param("poolNo")String poolNo);
	
	public Boolean queryPlatformIsEmpty(@Param("platformNo")String platformNo, @Param("platformStatus")String platformStatus);
	
	public void insertUpPool(@Param("upPool")UpPool upPool);
	
	public String queryPoolTotal(@Param("poolNo")String poolNo, @Param("platformNo")String platformNo);
	
	public void updatePayoutPointPool(@Param("poolNo")String poolNo, @Param("platformNo")String platformNo, @Param("scoreNum")String scoreNum);
	
	public void updateDeductionStatus(@Param("poolNo")String poolNo, @Param("consumeStatus")String consumeStatus);
	
	public void insertPoolConsume(@Param("request")DeductionPointsRequest request, @Param("flowId")String flowId, @Param("consumeStatus")String consumeStatus, @Param("dealId")String dealId);
	
	public void updatePoolConsume(@Param("flowId")String flowId, @Param("consumeStatus")String consumeStatus);
	
    public UpPool queryUpPoolTMP(@Param("platformNo")String platformNo, @Param("accountNo")String accountNo, @Param("poolStatus")String poolStatus);
	
	public void consumePool(@Param("poolId")String poolId, @Param("consumeNum")BigDecimal consumeNum);
}
